package com.dengyuanke.entity;

import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableName;
import com.dengyuanke.common.SuperEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;


/**
 * <p>
 * 
 * </p>
 *
 * @author dengyuanke
 * @since 2017-11-07
 */
@ApiModel("订单详情实体")
@TableName("tb_orders_details")
public class OrdersDetails extends SuperEntity<OrdersDetails> {

    private static final long serialVersionUID = 1L;

    /**
     * 订单id
     */
    @ApiModelProperty("订单id")
	@TableField("orders_id")
	private String ordersId;

	@ApiModelProperty("商品id")
	@TableField("goods_id")
	private String goodsId;

	@ApiModelProperty("商品名称")
	@TableField("goods_name")
	private String goodsName;
    /**
     * 数量
     */
	@ApiModelProperty("购买数量")
	private Integer total;

	public String getOrdersId() {
		return ordersId;
	}

	public void setOrdersId(String ordersId) {
		this.ordersId = ordersId;
	}

	public String getGoodsId() {
		return goodsId;
	}

	public void setGoodsId(String goodsId) {
		this.goodsId = goodsId;
	}

	public String getGoodsName() {
		return goodsName;
	}

	public void setGoodsName(String goodsName) {
		this.goodsName = goodsName;
	}

	public Integer getTotal() {
		return total;
	}

	public void setTotal(Integer total) {
		this.total = total;
	}

	@Override
	public String toString() {
		return "OrdersDetails{" +
				"ordersId='" + ordersId + '\'' +
				", goodsId='" + goodsId + '\'' +
				", goodsName='" + goodsName + '\'' +
				", total=" + total +
				'}';
	}
}
